package com.leetcode.LC;

public class LC1704 {
    public boolean halvesAreAlike(String s) {

        String str = "aeiouAEIOU";
        int a = 0;
        for (int i = 0; i < s.length() / 2; i++) {
            if (str.contains(s.charAt(i) + "")) {
                a++;
            }
        }
        for (int i = s.length() / 2; i < s.length(); i++) {
            if (str.contains(s.charAt(i) + "")) {
                a--;
            }
        }
        return a == 0;
    }

}
